package com.cloudpivot.project.crmprojectnew.pojo.task;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * CRM任务实体对象
 */
@Data
public class Task {
    /*
    任务编号
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String new_num;
    /*
    任务完成情况
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String new_finish_task;
    /*
    主题
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String subject;
    /*
    任务说明
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String description;
    /*
    云枢专用 关于 字段
     */
    @JsonProperty(value="regardingobjectidCloudvipot",access = JsonProperty.Access.WRITE_ONLY)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String regardingobjectidCloudvipot;
    /*
    关于
     */
    @JsonProperty(value = "regardingobjectid_account_task@odata.bind",access = JsonProperty.Access.READ_ONLY)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String regardingobjectid=this.regardingobjectidCloudvipot;
    /*
    get 关于
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "_regardingobjectid_value")
    private String _regardingobjectid_value;

    /*
    计划结束
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String scheduledend;
    /*
    计划开始
     */
    private String scheduledstart;
    /*
    实际结束
     */
    private String actualend;
    /*
    实际开始
     */
    private String actualstart;
    /*
    所有人
     */
    @JsonProperty(value = "ownerid@odata.bind")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String ownerid;
    /*
    创建人
     */
    @JsonIgnore
    private String MSCRMCallerID;

    /*
    传入用户email信息
     */
    @NotBlank(message = "用户信息不可空")
    @JsonProperty(value="userinfo",access = JsonProperty.Access.WRITE_ONLY)
    private String userinfo;
    /*
    任务guid
     */
    @JsonProperty(value="activityid")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String activityid;
}
